//
//  BaseViewController.m
//  Weibo
//
//  Created by qiang on 4/22/16.
//  Copyright © 2016 QiangTech. All rights reserved.
//

#import "BaseViewController.h"

#import "VisitorView.h"

@implementation BaseViewController

// 加载视图的时候根据用户是否登录，判断是否要加载访客视图
- (void)loadView
{
    self.userLogin = NO;
    if(self.userLogin) // 用户已登录显示正常tableview
    {
        [super loadView];
    }
    else
    {
        VisitorView *view = [[VisitorView alloc] init];
        self.view = view;
        self.vistorView = view;
    }
}

@end
